package cn.codergege.demo.main;

import cn.codergege.demo.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo2Application {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
		// 多个配置文件可以用 , 隔开, 或者再注册一次
		ctx.register(AppConfig.class);
		ctx.refresh();
		// todo: get bean, do something
		System.out.println("TestApplication runs.");
		ctx.close();
	}

}
			